import java.util.ArrayList;

// Denne klasse skal indeholde get array fra BankDatabase klassen
public class Customer {
	private String FirstName; // kundenavn
	private String LastName; // kundenavn
	private String cpr; // kunde cpr-nummer
	private String CustomerType; // kundetype erhverv/privat
	private String Address; // kundeandresse
	private int ClientNumber; // kundekodeord
	private int pin; // kundenummer
	private ArrayList<Account> accountList;

	public Customer(String theFirstName, String theLastName, String theCPR,
			String theCustomerType, String theAddress, int theClientNumber,
			int thePIN) {
		FirstName = theFirstName;
		LastName = theLastName;
		cpr = theCPR;
		CustomerType = theCustomerType;
		Address = theAddress;
		pin = thePIN;
		ClientNumber = theClientNumber;
		this.accountList = new ArrayList<Account>();
	}

	
	public void createAccount(int accountNumber, double AvailableBalance, double TotalBalance){
		accountList.add( new Account(accountNumber, AvailableBalance, TotalBalance));
	}
	
	public ArrayList<Account> getAccountList() {
		return accountList;
		
	}
	
	public boolean validatePIN(int userPIN) {
		if (userPIN == pin)
			return true;
		else
			return false;
	}

	public int getClientNumber() {
		return ClientNumber;

	}
		
	public String getFirstName() {
	return FirstName;

	}// end method getAccountNumber
		// returns available balance

} // end method getAvailableBalance

 // end class Customer

